package com.houtai.bean.dto.admin;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class AdminLogin {
    /**
     * 主键
     */
    private Integer admin_id;

    /**
     * 管理员姓名
     */
    private String user_name;

    /**
     * 登录密码
     */
    private String user_pass;

    /**
     * 注册时间
     */
    private Date reg_time;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 最后登录IP
     */
    private String login_ip;

    /**
     * 最后登录时间
     */
    private Date login_time;

    /**
     * 是否有效 0有效1无效
     */
    private Integer is_valid;

    /**
     * 级别
     */
    private Integer role_id;
    /**
     * 验证码
     */
    @NotNull(message = "验证码不能为空")
    private String img_code;
    /**
     * session中验证码
     */
    private String session_code;

    public Integer getAdmin_id() {
        return admin_id;
    }

    public void setAdmin_id(Integer admin_id) {
        this.admin_id = admin_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_pass() {
        return user_pass;
    }

    public void setUser_pass(String user_pass) {
        this.user_pass = user_pass;
    }

    public Date getReg_time() {
        return reg_time;
    }

    public void setReg_time(Date reg_time) {
        this.reg_time = reg_time;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLogin_ip() {
        return login_ip;
    }

    public void setLogin_ip(String login_ip) {
        this.login_ip = login_ip;
    }

    public Date getLogin_time() {
        return login_time;
    }

    public void setLogin_time(Date login_time) {
        this.login_time = login_time;
    }

    public Integer getIs_valid() {
        return is_valid;
    }

    public void setIs_valid(Integer is_valid) {
        this.is_valid = is_valid;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public String getImg_code() {
        return img_code;
    }

    public void setImg_code(String img_code) {
        this.img_code = img_code;
    }

    public String getSession_code() {
        return session_code;
    }

    public void setSession_code(String session_code) {
        this.session_code = session_code;
    }
}